package com.map
{
	import flash.display.Bitmap;
	import flash.display.Sprite;

	public class MapImgVO
	{
		public var mapImg:Bitmap;
		public var url:String;
		public var state:int;
		public var row:int;
		public var col:int;
		private var container:Sprite;
		
		public static var UNFINISHED:int = 1;
		public static var FINISHED:int = 2;
		
		public function MapImgVO(url:String, row:int, col:int, container:Sprite)
		{
			this.url = url;
			this.row = row;
			this.col = col;
			this.container = container;
			state = UNFINISHED;
		}
		
		public function updateMapInfo(img:Bitmap):void {
			mapImg = img;
			mapImg.x = col * 300;
			mapImg.y = row * 300;
			if(container)
				container.addChildAt(mapImg, 0);
			state = FINISHED;
		}
	}
}